/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: DELL
 * Date: 2022-10-04
 * Time: 10:38
 */
public class Test_MyQueue {

    public static void main(String[] args) {
        SingleLIst_MyQueue myQueue = new SingleLIst_MyQueue();
        myQueue.offer(1);
        myQueue.offer(2);
        myQueue.offer(3);
        myQueue.offer(4);
        System.out.println(myQueue.poll());
        System.out.println(myQueue.peek());
        System.out.println(myQueue.poll());
        System.out.println(myQueue.peek());

        System.out.println(myQueue.poll());
        System.out.println(myQueue.peek());

        System.out.println(myQueue.poll());




    }
}
